#pragma once
#include <stdint.h>

struct rpi_hw_t{
#define RPI_HWVER_TYPE_UNKNOWN                   0
#define RPI_HWVER_TYPE_PI1                       1
#define RPI_HWVER_TYPE_PI2                       2
#define RPI_HWVER_TYPE_PI4                       3
    uint32_t hwver;
    uint32_t type;
    uint32_t periph_base;
    uint32_t videocore_base;
    const char *desc;
};

const rpi_hw_t *rpi_hw_detect(void);
